from google.appengine.ext import db

class Game(db.Model):
	name = db.StringListProperty()
	minPlayers = db.IntegerProperty()
	maxPlayers = db.IntegerProperty()

class Player(db.Model):
	user = db.UserProperty()
	last_seen = db.DateTimeProperty()

class ChatRoom(db.Model):
	users = db.ListProperty(db.Key) # A Chat Room will consist of a list of users. This will change over time.
	messages = db.ListProperty(db.Key) # A Chat Room will also have a list of messages that have been sent over it's history.
	
class Message(db.Model):
	text = db.StringProperty()
	timestamp = db.DateTimeProperty()
	user = db.UserProperty()	 # The user who sent the message